<?php 
print '<table border=1 width=10%, caption=esami>';
echo '<tr><td><h3><b>Matricola</h3></td><td><h3><b>Cognome</h3></td><td><h3><b>Nome</h3></td>
		<td><h3><b>id_insegnamento</h3></td><td><h3><b>Voto</h3></td><td><h3><b>Lode</h3></td><td><h3><b>Menzione</h3></td>
		<td><h3><b>Data esame</h3></td><tr/>';
foreach($esami as $e):
		echo '<tr><td>'.$e['matricola'].'</td><td>'.$e['cognome'].'
				</td><td>'.$e['nome'].'</td><td>'.$e['id_insegnamento'].'</td>
						<td>'.$e['voto'].'</td><td>'.$e['lode'].'</td>
								<td>'.$e['menzione'].'</td><td>'.$e['data_esame'].'</td><tr/>';

endforeach;
print '</table>';?>